//
//  Model.m
//  瀑布流
//
//  Created by 朱永超 on 2017/3/15.
//  Copyright © 2017年 zyc. All rights reserved.
//

#import "Model.h"

@implementation Model

+(instancetype)setDic:(NSDictionary *)dic
{
    Model *mo = [[Model alloc] init];
    mo.height = [dic[@"height"] floatValue];
    mo.width = [dic[@"width"] floatValue];
    mo.title = dic[@"title"];
    mo.url = [NSURL URLWithString:dic[@"url"]];
    return mo;
}
@end
